Release Notes
5.5.76:
-
Performance optimizations of the
TickCursorandTickLoaderimplementation. See the throughput benchmarks. -
Added experimental
compactMessagesmode. WithSelectionOptions.compactMessages = True(SelectionOptions) a cursor returnsCompactMessageobjects instead ofInstrumentMessageobjects.CompactMessageis a subclass ofInstrumentMessagethat stores the fields in__slots__instead of__dict__, so reading messages is faster and messages take less memory.options = dxapi.SelectionOptions()options.compactMessages = Truewith stream.select(0, options) as cursor:while cursor.next():message = cursor.getMessage() # CompactMessageDifferences from a regular
InstrumentMessage:vars(message)andmessage.__dict__do not contain the fields, usemessage.to_dict()instead;- field names that are not valid Python identifiers are converted (
E.exchangeId->E_exchangeId), seeCompactMessagefor the rules; - compact messages can be sent with
TickLoader.send(); - compact messages cannot be pickled, so they cannot be passed between processes (
multiprocessing); useto_dict()orcopy.deepcopy(); - the option is applied by cursors only, reading to pandas DataFrame ignores it.
-
Added compression (gzip) of the data exchanged with the server. It reduces network traffic and costs some CPU, and is disabled by default.
TickDb.setCompression(True)enables it for the connection, cursors and loaders (call it beforeopen());TickDb.getCompression()returns the flag;SelectionOptions.useCompression(SelectionOptions) andLoadingOptions.useCompression(LoadingOptions) override the setting for a cursor or a loader (Nonemeans the value set bysetCompression()is used).
5.5.73:
- Support reading/writing large values (> 2048) for ENUMs.
5.5.70+glibc2.17
5.5.69version with legacy environment support (Linux CentOS 7 with glibc 2.17 and Python 3.6, 3.9);
5.5.69:
-
Update
selectandtrySelectAPI to support defaulttypesandentitiesasno filter:def select(self, timestamp: int,options: SelectionOptions,*args,types: list[str] | None = None,entities: list[InstrumentIdentity] | list[str] | None = None) -> TickCursor:Examples:
cursor = stream.select(0, dxapi.SelectionOptions())cursor = stream.select(0, dxapi.SelectionOptions(), entities=['AAPL', 'IBM']) -
Update type hints.
5.5.68:
- Python 3.9 support deprecated.
- Add
def setAccessToken(self, token: str) -> None:API.
5.5.67:
- Python 3.14 support.
5.5.66:
-
Add
SelectionOptions.autoCloseproperty (default:True):Specifies whether the cursor should be automatically closed on reaching end of stream in non-live mode. Has no effect in live mode, cursor needs to be closed manually.
Note, that all cursors now are auto-closeable by default.
5.5.65:
- Fix reading
-0.0instead ofnanfor Decimal64 type at the end of message.
5.5.64
- Added socket buffer size configuration via
environment Variables:DXAPI_LOADER_RECV_BUFFER_SIZEDXAPI_LOADER_SEND_BUFFER_SIZEDXAPI_CURSOR_RECV_BUFFER_SIZEDXAPI_CURSOR_SEND_BUFFER_SIZE
5.5.62
- Fixed an issue where
cursor.nextIfAvailable()could returnUNAVAILABLEeven when data was available.
5.5.61:
- Fix data corruption after writing decimal field of invalid type.
5.5.60:
- Fix incorrect reading/writing of complex nested objects.
5.5.59:
- Fix incorrect reading of
relative tofields fordxapi.pandas_utils.read_frame.
5.5.56:
- Support Python 3.13.
5.5.53:
- Added
SelectionOptions.decimalTypeproperty, that allows to read Decimal64 fields as decimal.Decimal() objects. - Added writing Decimals64 fields from decimal.Decimal().
5.5.52:
- Added
SelectionOptions.rebroadcastproperty, that allows to rebroadcast unique messages on open/reset cursors (trueby default).
5.5.52+glibc2.17
5.5.52version with legacy environment support (Linux CentOS 7 with glibc 2.17 and Python 3.6, 3.9);
5.5.46:
- Added timestamp subscription for
Multiplexed CursorAPI for QQL subscriptions; - Made
TickDb.getStream()method throw an exception in case of connection is not open;
5.5.45:
- Added
Multiplexed CursorAPI, that allows to create TickCursor to read multiple streams or QQL results;
5.5.42
- Switch off logging by default.
5.5.40
- Upgrade dependencies versions to pandas==2.2.3 numpy==2.2.2;
- Added
InstrumentMessage.to_dict()method; - Added rename instruments API (
TickSteam.renameInstruments()method).
5.5.35
- Added heartbeats to keep alive connections.
5.5.34
TickDb.getStream()method now avoids requesting all streams;- Internal API enhancement: implemented chunked stream list requests to prevent large memory allocations on the TimeBase server.
5.5.33
- Added log level configuration
5.5.31
- Added delete stream data API (
TickStream.deleteDatamethods); - Supported selection from multiple stream spaces (
SelectionOptions.withSpacesmethod).
5.5.31+glibc2.17
- Added delete stream data API (
TickStream.deleteDatamethods);
5.5.30
- Linux arm64 platform support.
5.5.25+glibc2.17
- Special tag for legacy environments with
glibc 2.17. Only forPython 3.6.
5.5.23
- Topic publisher support.
- Fixed
pandas_utils.read_frameinstrument type fetching.
5.5.20
- Fixed pandas utils create stream from data frame.
5.5.19
- Extended session client log.
5.5.18
- Added support for TimeBase separate web port.
- Added loader buffer size configuration options.
5.5.12
- Added support for publishing to conan repository.
5.5.10
- Added compatibility with TimeBase server 5.6 nanotime version.
5.5.9
- Fixed
nextIfAvailablehangs on server disconnect.
5.5.8
- Python 3.12 support.
5.5.6
- Fixed while reading fields with
DECIMAL(X)encoding.
5.5.5
- Added GIL releasing during cursor read and loader send.
5.5.4
- Fixed write None at the end of text fields.
5.5.3
- Added
pandas_utilssubmodule (utils for working withpandas.DataFrame). dxapi.stream_to_dictis replaced bypandas_utils.read_frameandpandas_utils.read_frame_dicts.- Fixed crash on repeated cursor assigning.
- Fixed none_dealloc on get stream location.
5.5.0
- Added cluster support.
- Select from stream spaces support.
- Integration
Conan 2.0package manager in addition toCMake 3.23. Upgrade 3rd-party libraries.OpenSSL 1.1.1j->1.1.1uTinyXML2 1.0.12->9.0.0Catch2 1.9.4->2.13.10
- Python 3.6, 3.7 support removed.
- Centos 7 support removed.
5.4.31
- API updates:
- Added support for CE like API which accepts entities (symbols) as strings.
- Fixes:
- Fixed NULL value for DECIMAL64 type.
- Removed
typeIdfrom message, returned bycursor.getMessage(). - Fixed TickLoader with SSL.
- Added support for default port in URL.
5.4.30
- Added
INSERTWriteMode. - Fixed
InstrumentTypeconstructor:dxapi.InstrumentIdentity(dxapi.InstrumentType('FX'), 'BTCBUSD')works now.
5.4.29
- Fixed
Wrong type of field 'timestamp'. Required: INTEGER.bug. - Added setters and getters methods for
InstrumentMessage:setTimestamp(long|float),setDateTime(datetime),datetime getDateTime(),setNanoTime(long|float),long getNanoTime().
5.4.28
- SSL: fixed ssl termination flow.
- Added
db.setApplicationName()support. - Ranged locks support.
- Working with stream schema support:
- Introduced classes
SchemaDef,TypeDef,FieldDefandDataTypeDef. - Introduced methods
stream.changeSchema()anddb.generateSchema().
- Introduced classes
5.4.27
- Artifacts optimization: dxapi python wheel common artifact was splitted into many artifacts for each platform.
5.4.26
- MacOS arm64 additional rpath'es added. Possibly can solve dxapi.so import problems.
5.4.25
- MacOS arm64 platform support (for Python v3.8, 3.9, 3.10, 3.11).
- Python 3.11 support.
5.4.20
- Added stream locks support (
TickStream.lockmethod). - Fixed time of day data type codec.
- Fixed float codecs (#21).
- Writing of null values into non-nullable fields was prohibited.
versionfield was added to StreamOptions.
5.4.19
- Fixed null terminated varchars.
5.4.18+centos
- Added support for centos7 version for Python 3.9. Install with command
pip install dxapi==5.4.18+centos --extra-index-url https://<user>:<password>@nexus.deltixhub.com/repository/epm-rtc-public-python/simple.
5.4.14
- Fixed message length check for empty messages.
5.4.13
- Fixed issue:
db.listStreams()returns empty array when we have at least 1 stream with empty name. - Fixed
dxapi.stream_to_dict()method. - Added
setup.pyscript to installer. Now dxapi can be installed with pip from local directory (useful for QuantServer installer users, for example,pip install /path/to/QuantServer/python). - Minor autodoc fixes.
5.4.12
- Fixed
cursor.next()hang forever when connection is down.
5.4.11
- Python 2.7 support deprecated.
- Generator migrated from swig version 3 to 4.
- All API wrappers was refactored to increase usability:
- Added type hints
- Added documentation strings
- Added @contextmanager versions of create methods:
openFromUrl,tryCursor,trySelect,tryLoader,tryExecuteQuery
- Added auto generated md documentation.
5.4.10
- Added support for 32-bit Entity ID, allowing to work with streams containing more than 65,536 instruments.
5.4.9
- Added support for python 3.9, 3.10.
5.4.4
- Support
SSLconnection.
5.4.0
- Added
spacesAPI:- Write message into space;
TickStream::listSpaces,TickStream::renameSpace,TickStream::deleteSpaces.